package com.kkwrite.regimen.provider.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lisha on 2018/7/6 20:14.
 *
 * @author lisha
 */
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Getter
@Setter
@ToString
public class BaseDO implements Serializable {

    private static final long serialVersionUID = -1399060551715817078L;

    @Column(name = "is_deleted", nullable = false)
    private Short deleted;
    @Column(name = "gmt_create", updatable = false,insertable=false,  nullable = false)
    private Timestamp gmtCreate;
    @Column(name = "creator", length = 20)
    private String creator;
    @Column(name = "gmt_modified", updatable = false,insertable=false, nullable = false)
    private Timestamp gmtModified;
    @Column(name = "modifier", length = 20)
    private String modifier;
    @Column(name = "ext_0", length = 50)
    private String ext0;
    @Column(name = "ext_1", length = 50)
    private String ext1;
    @Column(name = "ext_2", length = 50)
    private String ext2;

}
